package com.cskaoyan.bean.wx_coupon;

import com.cskaoyan.bean.promotion.coupon.CouponUser;
import com.github.pagehelper.PageInfo;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description:
 * @Author: WD created on 2021-09-19 11:30
 * @Version:
 */
@NoArgsConstructor
@Data
public class WXShowMyListCouponVO {


    private Long total;
    private Integer pages;
    private Integer limit;
    private Integer page;
    private List<WXMyListInnerCoupon> list;

    public WXShowMyListCouponVO(PageInfo<CouponUser> couponUserPageInfo, ArrayList<WXMyListInnerCoupon> userCoupons) {
        this.limit = couponUserPageInfo.getPageSize();
        this.total =couponUserPageInfo.getTotal();
        this.pages = couponUserPageInfo.getPages();
        this.page =couponUserPageInfo.getPageNum();
        this.list = userCoupons;

    }
}

